package cn.candy.order.service;

import cn.candy.basic.service.IBaseService;
import cn.candy.basic.util.PageList;
import cn.candy.order.domain.AdoptOrder;
import cn.candy.order.query.AdoptOrderQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 领养订单业务接口
 */
public interface IAdoptOrderService extends IBaseService<AdoptOrder> {

    /**
     * 创建领养订单
     * @param params
     * @param request
     * @return
     */
    String adoptOrderSubmit(Map<String, Object> params, HttpServletRequest request);

    /**
     * 查询管理员的领养订单
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> adminAdoptOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);

    /**
     * 查询用户的领养订单
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> userAdoptOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);
}
